home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Prog / T / TC Prog Guide.cpt / picture ƒ / error.h < prev    next >
Text File  |  1990-10-07  |  666b  |  30 lines

  1. /*
  2. *    FILE:        error.h
  3. *    AUTHOR:        R. Gonzalez
  4. *    CREATED:    October 6, 1990
  5. *
  6. *    Defines class for reporting errors.
  7. */
  8.  
  9. # ifndef    error_h
  10. # define    error_h
  11.  
  12. # include    "class.h"
  13. # include    <stdio.h>
  14.  
  15. /******************************************************************
  16. *   error class.  Intended use: define a global Error object
  17. *    which is allocated in main().  There should be only one
  18. *    error object at a time.  Error reports are written to the
  19. *    file "error.fil".
  20. ******************************************************************/
  21. struct    Error:Generic_Class
  22. {
  23.     FILE            *error_file;
  24.     
  25.     boolean            init(void);
  26.     virtual void    report(char*);
  27.     boolean            destroy(void);
  28. };
  29.  
  30. # endif